package cn.ac.iscas.service.junit;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.ac.iscas.action.paper.PaperExlIO;
import cn.ac.iscas.bean.paper.JournalPaper;
import cn.ac.iscas.service.paper.IJournalServive;
import cn.ac.iscas.service.paper.IPaperServive;


public class PaperIOTest {
	private static IJournalServive service;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		try {
			ApplicationContext act = new ClassPathXmlApplicationContext("application-context.xml");
			service = (IJournalServive) act.getBean("journalPaperServiceImp");
		} catch (RuntimeException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}	
	}
	@Test
	public void impExcel()
	{
	//	PaperExlIO io = new PaperExlIO(service);
		try {
	//		io.read("e:/Book1_shao.xls");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
